import requests, os












def account_information(header, num, page, accountno):
    """
    func : 查询账户信息
    :param header:请求头
    :param num: 页面数据条数
    :param page: 页数
    :param accountno: 用户账户编号
    :return:
    """
    url = os.getenv('HOST') + '/account/list'
    data = {
        "pageNum": num,
        "numPerPage": page,
        "accountNo": accountno
    }
    return requests.post(url, headers=header, json=data)



def account_history_information(header, num, page, accountno):
    """
    func : 查询历史账户信息
    :param header: 请求头
    :param num: 页面数据条数
    :param page: 页数
    :param accountno: 用户账户编号
    :return:
    """
    url = os.getenv('HOST') + '/account/list'
    data = {
        "pageNum": num,
        "numPerPage": page,
        "accountNo": accountno
    }
    return requests.post(url, headers=header, json=data)








